package jnpf.model.ragFlow.file;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("文档列表请求参数")
public class DocumentListRequest {
    @ApiModelProperty(value = "搜索关键词", notes = "用于匹配文档标题")
    private String keywords;

    @ApiModelProperty(value = "页码", example = "1", notes = "默认值为1")
    private Integer page = 1;

    @ApiModelProperty(value = "每页数量", example = "30", notes = "默认值为30")
    private Integer pageSize = 30;

    @ApiModelProperty(value = "排序字段", allowableValues = "create_time,update_time", notes = "默认值为create_time")
    private String orderby = "create_time";

    @ApiModelProperty(value = "是否降序", example = "true", notes = "默认值为true")
    private Boolean desc = true;

    @ApiModelProperty(value = "文档ID", notes = "用于筛选的文档ID")
    private String id;

    @ApiModelProperty(value = "name", notes = "文档名称")
    private String name;
}
